/*
 * @文件描述:
 * @版本:
 * @作者:周晨阳
 * @Date:2021-11-14 21:29:54
 */
#include "connection.h"


QTcpSocket *client;
Connection::Connection()
{
    client = new QTcpSocket();
    connect(client, SIGNAL(connected()), this, SLOT(connected()));
    client->connectToHost(QHostAddress("192.168.1.103"), 6665);
}

void Connection::connected()
{
    qDebug() << "connected";
    client->write(QString("1=80 ").toUtf8());
}
